//
//  JRASIAuthenticationDialog.h
//  Part of JRASIHTTPRequest -> http://allseeing-i.com/JRASIHTTPRequest
//
//  Created by Ben Copsey on 21/08/2009.
//  Copyright 2009 All-Seeing Interactive. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class JRASIHTTPRequest;

typedef enum _JRASIAuthenticationType {
	JRASIStandardAuthenticationType = 0,
    JRASIProxyAuthenticationType = 1
} JRASIAuthenticationType;

@interface JRASIAutorotatingViewController : UIViewController
@end

@interface JRASIAuthenticationDialog : JRASIAutorotatingViewController <UIActionSheetDelegate, UITableViewDelegate, UITableViewDataSource> {
	JRASIHTTPRequest *request;
	JRASIAuthenticationType type;
	UITableView *tableView;
	UIViewController *presentingController;
	BOOL didEnableRotationNotifications;
}
+ (void)presentAuthenticationDialogForRequest:(JRASIHTTPRequest *)request;
+ (void)dismiss;

@property (retain) JRASIHTTPRequest *request;
@property (assign) JRASIAuthenticationType type;
@property (assign) BOOL didEnableRotationNotifications;
@property (retain, nonatomic) UIViewController *presentingController;
@end
